<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/tinymce/skins/content/document/content.min.css" />
    <link rel="stylesheet" href="/tinymce/skins/ui/oxide/content.min.css">
    <link rel="stylesheet" href="/tinymce/skins/ui/oxide/skin.min.css">
    <script src="/js/axios.js"></script>
    <script src="/editor/js/jquery.min.js"></script>
    <script src="/js/app.js"></script>
    <style>
        body {
            font-family: "微软雅黑", sans-serif;
        }
    </style>
</head>
<body>
    <div style="padding: 20px">
        <div style="padding: 20px;background-color: white">
            <div id="layout">
                <header>
                    <div align="center">
                        <div id="title-content" style="font-size: 24px;font-weight: bold;"></div>
                        <br>
                        <div id="views"></div>
                    </div>
                </header>


                <div id="test-editormd-view" style="font-size: 16px">
                    <div id="content-pane"></div>
                </div>

            </div>
        </div>
    </div>
   <script>

       var arg = ${id};

       var result=data();
       $("#title-content").html(result.data.title)
       $("title").html(result.data.title);
       $("#content-pane").html(result.data.content)
       $("#views").html('浏览次数：'+result.data.viewnum)
       // api.GET('/note/get',{'nid':arg},(result)=>{
       //     $("#title-content").html(result.data.title)
       //     $("#append-test").val(result.data.content)
       //     $("#views").html('浏览次数：'+result.data.viewnum)
       // })
       function data(){
           return api.URLAjax('get','/note/get',{'nid':arg})
       }

   </script>
</body>
</html>